package com.xiaobingby.common.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class TreeNode{
    private long id;
    private String text;
    private String state = "closed";
    private boolean checked = false;
    private Object attributes;
    private List<TreeNode> children = new ArrayList<TreeNode>();
    private String iconCls;
    private long pid;
    private TreeNode parentNode;
    public void addChild(TreeNode treeNode){
        children.add(treeNode);
    }
}
